home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / MCL Related / User Contributions / oodles-of-utils.sea / oodles-of-utils / brutal-utils / traps-u.lisp < prev   
MacBinary  |  1992-02-05  |  4.0 KB  |  [TEXT/CCL2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Feb 5 11:03:16 1992, modified Wed Feb 5 11:03:16 1992, creator Common Lisp 2, type ASCII, 3401 bytes "traps-u.lisp" , at 0xdc9 442 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% dearkID deark: macbinary default
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CCL2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 74 72 61 70 73 2d | 75 2e 6c 69 73 70 00 00 |..traps-|u.lisp..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 43 4c | 32 01 00 00 00 00 00 00 |.TEXTCCL|2.......|
|00000050| 00 00 00 00 00 0d 49 00 | 00 01 ba a5 b5 bb 44 a5 |......I.|......D.|
|00000060| b5 bb 44 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..D.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 2b 76 00 00 |........|....+v..|
|00000080| 28 69 6e 2d 70 61 63 6b | 61 67 65 20 3a 6f 6f 75 |(in-pack|age :oou|
|00000090| 29 0d 28 6f 6f 75 2d 70 | 72 6f 76 69 64 65 20 3a |).(oou-p|rovide :|
|000000a0| 54 72 61 70 73 2d 75 29 | 0d 3b 3b 3b 3b 3b 3b 3b |Traps-u)|.;;;;;;;|
|000000b0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000000c0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000000d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000000e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 0d |;;;;;;;;|;;;;;;;.|
|000000f0| 3b 3b 20 74 72 61 70 73 | 2d 75 2e 4c 69 73 70 0d |;; traps|-u.Lisp.|
|00000100| 3b 3b 0d 3b 3b 20 43 6f | 70 79 72 69 67 68 74 20 |;;.;; Co|pyright |
|00000110| a9 20 31 39 39 32 20 4e | 6f 72 74 68 77 65 73 74 |. 1992 N|orthwest|
|00000120| 65 72 6e 20 55 6e 69 76 | 65 72 73 69 74 79 20 49 |ern Univ|ersity I|
|00000130| 6e 73 74 69 74 75 74 65 | 20 66 6f 72 20 74 68 65 |nstitute| for the|
|00000140| 20 4c 65 61 72 6e 69 6e | 67 20 53 63 69 65 6e 63 | Learnin|g Scienc|
|00000150| 65 73 0d 3b 3b 20 41 6c | 6c 20 52 69 67 68 74 73 |es.;; Al|l Rights|
|00000160| 20 52 65 73 65 72 76 65 | 64 0d 3b 3b 0d 3b 3b 20 | Reserve|d.;;.;; |
|00000170| 61 75 74 68 6f 72 3a 20 | 4d 69 63 68 61 65 6c 20 |author: |Michael |
|00000180| 53 2e 20 45 6e 67 62 65 | 72 0d 3b 3b 0d 3b 3b 20 |S. Engbe|r.;;.;; |
|00000190| 55 74 69 6c 69 74 69 65 | 73 20 66 6f 72 20 77 6f |Utilitie|s for wo|
|000001a0| 72 6b 69 6e 67 20 77 69 | 74 68 20 74 72 61 70 20 |rking wi|th trap |
|000001b0| 63 61 6c 6c 73 20 0d 3b | 3b 3b 3b 3b 3b 3b 3b 3b |calls .;|;;;;;;;;|
|000001c0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000001d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000001e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000001f0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 0d 0d 28 |;;;;;;;;|;;;;;..(|
|00000200| 6f 6f 75 2d 64 65 70 65 | 6e 64 65 6e 63 69 65 73 |oou-depe|ndencies|
|00000210| 20 3a 2b 4f 53 55 74 69 | 6c 73 0d 20 20 20 20 20 | :+OSUti|ls. |
|00000220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 29 0d 0d | | )..|
|00000230| 28 65 78 70 6f 72 74 20 | 27 28 6f 6e 2d 74 72 61 |(export |'(on-tra|
|00000240| 70 2d 6e 7a 2d 65 72 72 | 6f 72 20 74 72 61 70 2d |p-nz-err|or trap-|
|00000250| 6e 7a 2d 65 63 68 65 63 | 6b 20 77 69 74 68 2d 70 |nz-echec|k with-p|
|00000260| 61 74 63 68 65 64 2d 74 | 72 61 70 0d 20 20 20 20 |atched-t|rap. |
|00000270| 20 20 20 20 20 20 29 29 | 0d 0d 3b 3b 3b 3b 3b 3b | ))|..;;;;;;|
|00000280| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000290| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000002a0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000002b0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000002c0| 0d 0d 28 65 76 61 6c 2d | 77 68 65 6e 20 28 3a 63 |..(eval-|when (:c|
|000002d0| 6f 6d 70 69 6c 65 2d 74 | 6f 70 6c 65 76 65 6c 20 |ompile-t|oplevel |
|000002e0| 3a 6c 6f 61 64 2d 74 6f | 70 6c 65 76 65 6c 20 3a |:load-to|plevel :|
|000002f0| 65 78 65 63 75 74 65 29 | 0d 20 20 0d 20 20 28 64 |execute)|. . (d|
|00000300| 65 66 6d 61 63 72 6f 20 | 6f 6e 2d 74 72 61 70 2d |efmacro |on-trap-|
|00000310| 6e 7a 2d 65 72 72 6f 72 | 20 28 74 72 61 70 2d 66 |nz-error| (trap-f|
|00000320| 6f 72 6d 20 26 72 65 73 | 74 20 62 6f 64 79 29 0d |orm &res|t body).|
|00000330| 20 20 20 20 28 6c 65 74 | 2a 20 28 28 72 65 73 75 | (let|* ((resu|
|00000340| 6c 74 20 28 67 65 6e 73 | 79 6d 29 29 0d 20 20 20 |lt (gens|ym)). |
|00000350| 20 20 20 20 20 20 20 20 | 28 74 72 61 70 2d 63 61 | |(trap-ca|
|00000360| 6c 6c 20 28 69 66 20 28 | 65 71 20 27 72 65 71 75 |ll (if (|eq 'requ|
|00000370| 69 72 65 2d 74 72 61 70 | 20 28 66 69 72 73 74 20 |ire-trap| (first |
|00000380| 74 72 61 70 2d 66 6f 72 | 6d 29 29 0d 20 20 20 20 |trap-for|m)). |
|00000390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000003a0| 20 20 20 20 28 72 65 73 | 74 20 74 72 61 70 2d 66 | (res|t trap-f|
|000003b0| 6f 72 6d 29 0d 20 20 20 | 20 20 20 20 20 20 20 20 |orm). | |
|000003c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 74 72 61 | | tra|
|000003d0| 70 2d 66 6f 72 6d 29 29 | 0d 20 20 20 20 20 20 20 |p-form))|. |
|000003e0| 20 20 20 20 28 61 72 67 | 73 20 28 72 65 73 74 20 | (arg|s (rest |
|000003f0| 74 72 61 70 2d 63 61 6c | 6c 29 29 29 0d 20 20 20 |trap-cal|l))). |
|00000400| 20 20 20 60 28 6c 65 74 | 20 28 28 2c 72 65 73 75 | `(let| ((,resu|
|00000410| 6c 74 20 2c 74 72 61 70 | 2d 63 61 6c 6c 29 29 0d |lt ,trap|-call)).|
|00000420| 20 20 20 20 20 20 20 20 | 20 28 64 65 63 6c 61 72 | | (declar|
|00000430| 65 20 28 64 79 6e 61 6d | 69 63 2d 65 78 74 65 6e |e (dynam|ic-exten|
|00000440| 74 20 2c 72 65 73 75 6c | 74 29 0d 20 20 20 20 20 |t ,resul|t). |
|00000450| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 28 66 69 | | (fi|
|00000460| 78 6e 75 6d 20 2c 72 65 | 73 75 6c 74 29 29 0d 20 |xnum ,re|sult)). |
|00000470| 20 20 20 20 20 20 20 20 | 28 75 6e 6c 65 73 73 20 | |(unless |
|00000480| 28 7a 65 72 6f 70 20 2c | 72 65 73 75 6c 74 29 0d |(zerop ,|result).|
|00000490| 20 20 20 20 20 20 20 20 | 20 20 20 2c 40 62 6f 64 | | ,@bod|
|000004a0| 79 0d 20 20 20 20 20 20 | 20 20 20 20 20 28 65 72 |y. | (er|
|000004b0| 72 6f 72 20 28 4d 61 63 | 4f 53 2d 6e 7a 2d 65 72 |ror (Mac|OS-nz-er|
|000004c0| 72 6f 72 2d 73 74 72 69 | 6e 67 20 27 2c 74 72 61 |ror-stri|ng ',tra|
|000004d0| 70 2d 66 6f 72 6d 20 27 | 2c 61 72 67 73 20 2c 72 |p-form '|,args ,r|
|000004e0| 65 73 75 6c 74 29 20 2c | 40 61 72 67 73 29 29 0d |esult) ,|@args)).|
|000004f0| 20 20 20 20 20 20 20 20 | 20 30 29 29 29 0d 20 20 | | 0))). |
|00000500| 0d 20 20 28 64 65 66 6d | 61 63 72 6f 20 74 72 61 |. (defm|acro tra|
|00000510| 70 2d 6e 7a 2d 65 63 68 | 65 63 6b 20 28 74 72 61 |p-nz-ech|eck (tra|
|00000520| 70 2d 63 61 6c 6c 29 0d | 20 20 20 20 60 28 6f 6e |p-call).| `(on|
|00000530| 2d 74 72 61 70 2d 6e 7a | 2d 65 72 72 6f 72 20 2c |-trap-nz|-error ,|
|00000540| 74 72 61 70 2d 63 61 6c | 6c 29 29 0d 20 20 0d 20 |trap-cal|l)). . |
|00000550| 20 28 64 65 66 6d 61 63 | 72 6f 20 77 69 74 68 2d | (defmac|ro with-|
|00000560| 70 61 74 63 68 65 64 2d | 74 72 61 70 20 28 28 74 |patched-|trap ((t|
|00000570| 72 61 70 2d 6e 75 6d 62 | 65 72 20 6e 65 77 2d 74 |rap-numb|er new-t|
|00000580| 72 61 70 2d 61 64 64 72 | 20 26 6f 70 74 69 6f 6e |rap-addr| &option|
|00000590| 61 6c 20 28 6f 6c 64 2d | 74 72 61 70 2d 61 64 64 |al (old-|trap-add|
|000005a0| 72 20 28 67 65 6e 73 79 | 6d 29 29 29 20 26 62 6f |r (gensy|m))) &bo|
|000005b0| 64 79 20 62 6f 64 79 29 | 0d 20 20 20 20 28 6c 65 |dy body)|. (le|
|000005c0| 74 20 28 28 74 72 61 70 | 2d 74 79 70 65 20 28 69 |t ((trap|-type (i|
|000005d0| 66 20 28 70 6c 75 73 70 | 20 28 6c 6f 67 61 6e 64 |f (plusp| (logand|
|000005e0| 20 23 78 30 38 30 30 29 | 29 20 23 24 54 6f 6f 6c | #x0800)|) #$Tool|
|000005f0| 54 72 61 70 20 23 24 4f | 53 54 72 61 70 29 29 29 |Trap #$O|STrap)))|
|00000600| 0d 20 20 20 20 20 20 60 | 28 77 69 74 68 2d 6d 61 |. `|(with-ma|
|00000610| 63 70 74 72 73 20 28 28 | 2c 6f 6c 64 2d 74 72 61 |cptrs ((|,old-tra|
|00000620| 70 2d 61 64 64 72 20 28 | 25 69 6e 74 2d 74 6f 2d |p-addr (|%int-to-|
|00000630| 70 74 72 20 28 23 7e 4e | 47 65 74 54 72 61 70 41 |ptr (#~N|GetTrapA|
|00000640| 64 64 72 65 73 73 20 2c | 74 72 61 70 2d 6e 75 6d |ddress ,|trap-num|
|00000650| 62 65 72 20 2c 74 72 61 | 70 2d 74 79 70 65 29 29 |ber ,tra|p-type))|
|00000660| 29 29 0d 20 20 20 20 20 | 20 20 20 20 28 75 6e 77 |)). | (unw|
|00000670| 69 6e 64 2d 70 72 6f 74 | 65 63 74 0d 20 20 20 20 |ind-prot|ect. |
|00000680| 20 20 20 20 20 20 20 28 | 70 72 6f 67 6e 0d 20 20 | (|progn. |
|00000690| 20 20 20 20 20 20 20 20 | 20 20 20 28 23 7e 4e 53 | | (#~NS|
|000006a0| 65 74 54 72 61 70 41 64 | 64 72 65 73 73 20 28 25 |etTrapAd|dress (%|
|000006b0| 70 74 72 2d 74 6f 2d 69 | 6e 74 20 2c 6e 65 77 2d |ptr-to-i|nt ,new-|
|000006c0| 74 72 61 70 2d 61 64 64 | 72 29 20 2c 74 72 61 70 |trap-add|r) ,trap|
|000006d0| 2d 6e 75 6d 62 65 72 20 | 2c 74 72 61 70 2d 74 79 |-number |,trap-ty|
|000006e0| 70 65 29 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |pe). | |
|000006f0| 20 2c 40 62 6f 64 79 29 | 0d 20 20 20 20 20 20 20 | ,@body)|. |
|00000700| 20 20 20 20 28 23 7e 4e | 53 65 74 54 72 61 70 41 | (#~N|SetTrapA|
|00000710| 64 64 72 65 73 73 20 28 | 25 70 74 72 2d 74 6f 2d |ddress (|%ptr-to-|
|00000720| 69 6e 74 20 2c 6f 6c 64 | 2d 74 72 61 70 2d 61 64 |int ,old|-trap-ad|
|00000730| 64 72 29 20 2c 74 72 61 | 70 2d 6e 75 6d 62 65 72 |dr) ,tra|p-number|
|00000740| 20 2c 74 72 61 70 2d 74 | 79 70 65 29 29 29 29 29 | ,trap-t|ype)))))|
|00000750| 0d 20 20 0d 20 20 29 0d | 0d 3b 3b 3b 3b 3b 3b 3b |. . ).|.;;;;;;;|
|00000760| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000770| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000780| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000790| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 0d |;;;;;;;;|;;;;;;;.|
|000007a0| 0d 0d 28 64 65 66 75 6e | 20 4d 61 63 4f 53 2d 6e |..(defun| MacOS-n|
|000007b0| 7a 2d 65 72 72 6f 72 2d | 73 74 72 69 6e 67 20 28 |z-error-|string (|
|000007c0| 74 72 61 70 2d 66 6f 72 | 6d 20 61 72 67 73 20 72 |trap-for|m args r|
|000007d0| 65 73 75 6c 74 29 0d 20 | 20 28 66 6f 72 6d 61 74 |esult). | (format|
|000007e0| 20 6e 69 6c 0d 20 20 20 | 20 20 20 20 20 20 20 22 | nil. | "|
|000007f0| 6d 61 63 20 65 72 72 6f | 72 20 63 6f 64 65 20 3d |mac erro|r code =|
|00000800| 20 7e 73 7e 25 3e 20 66 | 72 6f 6d 20 74 72 61 70 | ~s~%> f|rom trap|
|00000810| 20 63 61 6c 6c 3a 20 7e | 73 7e 25 3e 20 20 77 69 | call: ~|s~%> wi|
|00000820| 74 68 20 61 72 67 20 76 | 61 6c 73 3a 20 7e 7b 7e |th arg v|als: ~{~|
|00000830| 25 3e 20 20 20 20 7e 73 | 20 3d 20 7e 7e 73 7e 7d |%> ~s| = ~~s~}|
|00000840| 22 0d 20 20 20 20 20 20 | 20 20 20 20 72 65 73 75 |". | resu|
|00000850| 6c 74 0d 20 20 20 20 20 | 20 20 20 20 20 74 72 61 |lt. | tra|
|00000860| 70 2d 66 6f 72 6d 0d 20 | 20 20 20 20 20 20 20 20 |p-form. | |
|00000870| 20 61 72 67 73 29 29 0d | 0d 3b 3b 3b 3b 3b 3b 3b | args)).|.;;;;;;;|
|00000880| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000890| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000008a0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000008b0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 0d |;;;;;;;;|;;;;;;;.|
|000008c0| 0d 23 7c 0d 0d 3b 3b 65 | 78 61 6d 70 6c 65 20 6f |.#|..;;e|xample o|
|000008d0| 66 20 70 61 74 63 68 69 | 6e 67 20 45 72 61 73 65 |f patchi|ng Erase|
|000008e0| 52 65 63 74 20 74 6f 20 | 64 6f 20 6e 6f 74 68 69 |Rect to |do nothi|
|000008f0| 6e 67 2e 20 55 73 65 66 | 75 6c 20 66 6f 72 20 6b |ng. Usef|ul for k|
|00000900| 65 65 70 69 6e 67 0d 3b | 3b 20 54 65 78 74 45 64 |eeping.;|; TextEd|
|00000910| 69 74 20 66 72 6f 6d 20 | 64 6f 69 6e 67 20 61 6e |it from |doing an|
|00000920| 20 45 72 61 73 65 52 65 | 63 74 20 62 65 66 6f 72 | EraseRe|ct befor|
|00000930| 65 20 69 6d 61 67 69 6e | 67 20 74 68 65 20 74 65 |e imagin|g the te|
|00000940| 78 74 2e 0d 0d 28 64 65 | 66 70 61 73 63 61 6c 20 |xt...(de|fpascal |
|00000950| 64 75 6d 6d 79 2d 45 72 | 61 73 65 52 65 63 74 20 |dummy-Er|aseRect |
|00000960| 28 3a 70 74 72 20 72 20 | 3a 76 6f 69 64 29 20 28 |(:ptr r |:void) (|
|00000970| 64 65 63 6c 61 72 65 20 | 28 69 67 6e 6f 72 65 20 |declare |(ignore |
|00000980| 72 29 29 29 0d 0d 28 64 | 65 66 70 61 72 61 6d 65 |r)))..(d|efparame|
|00000990| 74 65 72 20 2a 74 65 73 | 74 2d 77 2a 20 28 6d 61 |ter *tes|t-w* (ma|
|000009a0| 6b 65 2d 69 6e 73 74 61 | 6e 63 65 20 27 77 69 6e |ke-insta|nce 'win|
|000009b0| 64 6f 77 20 3a 76 69 65 | 77 2d 73 69 7a 65 20 23 |dow :vie|w-size #|
|000009c0| 40 28 32 30 30 20 32 30 | 30 29 20 3a 76 69 65 77 |@(200 20|0) :view|
|000009d0| 2d 66 6f 6e 74 20 27 28 | 22 43 68 69 63 61 67 6f |-font '(|"Chicago|
|000009e0| 22 20 31 32 29 29 29 0d | 0d 28 77 69 74 68 2d 66 |" 12))).|.(with-f|
|000009f0| 6f 63 75 73 65 64 2d 76 | 69 65 77 20 2a 74 65 73 |ocused-v|iew *tes|
|00000a00| 74 2d 77 2a 0d 20 0d 20 | 20 20 20 28 6c 65 74 2a |t-w*. . | (let*|
|00000a10| 20 28 28 74 6f 70 4c 65 | 66 74 20 23 40 28 30 20 | ((topLe|ft #@(0 |
|00000a20| 30 29 29 0d 20 20 20 20 | 20 20 20 20 20 20 20 28 |0)). | (|
|00000a30| 62 6f 74 52 69 67 68 74 | 20 28 76 69 65 77 2d 73 |botRight| (view-s|
|00000a40| 69 7a 65 20 2a 74 65 73 | 74 2d 77 2a 29 29 0d 20 |ize *tes|t-w*)). |
|00000a50| 20 20 20 20 20 20 20 20 | 20 20 28 6d 69 64 20 28 | | (mid (|
|00000a60| 72 6f 75 6e 64 20 28 2b | 20 28 70 6f 69 6e 74 2d |round (+| (point-|
|00000a70| 76 20 74 6f 70 4c 65 66 | 74 29 20 28 70 6f 69 6e |v topLef|t) (poin|
|00000a80| 74 2d 76 20 62 6f 74 52 | 69 67 68 74 29 29 20 32 |t-v botR|ight)) 2|
|00000a90| 29 29 29 0d 20 20 20 20 | 20 20 28 72 6c 65 74 20 |))). | (rlet |
|00000aa0| 28 28 72 20 20 3a 52 65 | 63 74 20 3a 74 6f 70 4c |((r :Re|ct :topL|
|00000ab0| 65 66 74 20 74 6f 70 4c | 65 66 74 20 3a 62 6f 74 |eft topL|eft :bot|
|00000ac0| 52 69 67 68 74 20 62 6f | 74 52 69 67 68 74 29 0d |Right bo|tRight).|
|00000ad0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 28 72 31 | | (r1|
|00000ae0| 20 3a 52 65 63 74 20 3a | 74 6f 70 4c 65 66 74 20 | :Rect :|topLeft |
|00000af0| 74 6f 70 4c 65 66 74 20 | 3a 62 6f 74 74 6f 6d 20 |topLeft |:bottom |
|00000b00| 20 6d 69 64 20 3a 72 69 | 67 68 74 20 28 70 6f 69 | mid :ri|ght (poi|
|00000b10| 6e 74 2d 68 20 62 6f 74 | 52 69 67 68 74 29 29 0d |nt-h bot|Right)).|
|00000b20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 28 72 32 | | (r2|
|00000b30| 20 3a 52 65 63 74 20 3a | 74 6f 70 20 6d 69 64 20 | :Rect :|top mid |
|00000b40| 3a 6c 65 66 74 20 28 70 | 6f 69 6e 74 2d 68 20 74 |:left (p|oint-h t|
|00000b50| 6f 70 4c 65 66 74 29 20 | 3a 62 6f 74 52 69 67 68 |opLeft) |:botRigh|
|00000b60| 74 20 62 6f 74 52 69 67 | 68 74 29 29 0d 0d 20 20 |t botRig|ht)).. |
|00000b70| 20 20 20 20 20 20 28 23 | 5f 46 69 6c 6c 52 65 63 | (#|_FillRec|
|00000b80| 74 20 72 20 2a 67 72 61 | 79 2d 70 61 74 74 65 72 |t r *gra|y-patter|
|00000b90| 6e 2a 29 0d 0d 20 20 20 | 20 20 20 20 20 28 23 5f |n*).. | (#_|
|00000ba0| 49 6e 73 65 74 52 65 63 | 74 20 72 31 20 31 35 20 |InsetRec|t r1 15 |
|00000bb0| 31 35 29 0d 20 20 20 20 | 20 20 20 20 28 23 5f 49 |15). | (#_I|
|00000bc0| 6e 73 65 74 52 65 63 74 | 20 72 32 20 31 35 20 31 |nsetRect| r2 15 1|
|00000bd0| 35 29 0d 20 20 20 20 20 | 20 20 20 28 23 5f 46 72 |5). | (#_Fr|
|00000be0| 61 6d 65 52 65 63 74 20 | 72 31 29 0d 20 20 20 20 |ameRect |r1). |
|00000bf0| 20 20 20 20 28 23 5f 46 | 72 61 6d 65 52 65 63 74 | (#_F|rameRect|
|00000c00| 20 72 32 29 0d 20 20 20 | 20 20 20 20 20 28 6c 65 | r2). | (le|
|00000c10| 74 20 28 28 74 65 78 74 | 31 20 22 48 65 72 65 20 |t ((text|1 "Here |
|00000c20| 69 73 20 6e 6f 72 6d 61 | 6c 20 74 65 78 74 20 65 |is norma|l text e|
|00000c30| 64 69 74 20 64 72 61 77 | 69 6e 67 20 76 69 61 20 |dit draw|ing via |
|00000c40| 5f 54 65 78 74 42 6f 78 | 2e 20 4e 6f 74 65 3a 20 |_TextBox|. Note: |
|00000c50| 69 74 20 63 61 6c 6c 73 | 20 45 72 61 73 65 52 65 |it calls| EraseRe|
|00000c60| 63 74 20 31 73 74 22 29 | 0d 20 20 20 20 20 20 20 |ct 1st")|. |
|00000c70| 20 20 20 20 20 20 20 28 | 74 65 78 74 32 20 22 48 | (|text2 "H|
|00000c80| 65 72 65 20 74 68 65 20 | 45 72 61 73 65 52 65 63 |ere the |EraseRec|
|00000c90| 74 20 74 72 61 70 20 68 | 61 73 20 62 65 65 6e 20 |t trap h|as been |
|00000ca0| 70 61 74 63 68 65 64 20 | 74 6f 20 64 6f 20 6e 6f |patched |to do no|
|00000cb0| 74 68 69 6e 67 2e 22 29 | 29 0d 20 20 20 20 20 20 |thing.")|). |
|00000cc0| 20 20 20 20 28 77 69 74 | 68 2d 63 73 74 72 73 20 | (wit|h-cstrs |
|00000cd0| 28 28 74 65 78 74 31 5f | 70 20 74 65 78 74 31 29 |((text1_|p text1)|
|00000ce0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000cf0| 20 20 20 20 20 20 20 20 | 28 74 65 78 74 32 5f 70 | |(text2_p|
|00000d00| 20 74 65 78 74 32 29 29 | 0d 20 20 20 20 20 20 20 | text2))|. |
|00000d10| 20 28 23 5f 54 65 78 74 | 42 6f 78 20 74 65 78 74 | (#_Text|Box text|
|00000d20| 31 5f 70 20 28 6c 65 6e | 67 74 68 20 74 65 78 74 |1_p (len|gth text|
|00000d30| 31 29 20 72 31 20 23 24 | 74 65 4a 75 73 74 43 65 |1) r1 #$|teJustCe|
|00000d40| 6e 74 65 72 29 0d 20 20 | 20 20 20 20 20 20 28 77 |nter). | (w|
|00000d50| 69 74 68 2d 70 61 74 63 | 68 65 64 2d 74 72 61 70 |ith-patc|hed-trap|
|00000d60| 20 28 23 5f 45 72 61 73 | 65 52 65 63 74 20 64 75 | (#_Eras|eRect du|
|00000d70| 6d 6d 79 2d 45 72 61 73 | 65 52 65 63 74 29 0d 20 |mmy-Eras|eRect). |
|00000d80| 20 20 20 20 20 20 20 20 | 20 28 23 5f 54 65 78 74 | | (#_Text|
|00000d90| 42 6f 78 20 74 65 78 74 | 32 5f 70 20 28 6c 65 6e |Box text|2_p (len|
|00000da0| 67 74 68 20 74 65 78 74 | 32 29 20 72 32 20 23 24 |gth text|2) r2 #$|
|00000db0| 74 65 4a 75 73 74 43 65 | 6e 74 65 72 29 29 29 29 |teJustCe|nter))))|
|00000dc0| 29 29 29 0d 0d 0d 0d 7c | 23 00 00 00 00 00 00 00 |)))....||#.......|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 00 00 01 00 00 00 01 68 | 00 00 00 68 00 00 00 52 |.......h|...h...R|
|00000e10| 29 0d 28 70 72 6f 76 69 | 64 65 20 3a 54 72 61 70 |).(provi|de :Trap|
|00000e20| 73 2d 75 29 0d 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |s-u).;;;|;;;;;;;;|
|00000e30| 0c 74 72 61 70 73 2d 75 | 2e 6c 69 73 70 7d 02 00 |.traps-u|.lisp}..|
|00000e40| 00 00 54 45 58 54 43 43 | 4c 32 01 00 00 28 00 60 |..TEXTCC|L2...(.`|
|00000e50| 00 00 54 45 58 54 43 43 | 4c 32 01 00 00 28 00 60 |..TEXTCC|L2...(.`|
|00000e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e70| 00 00 a4 a8 af f5 00 00 | 0d 49 00 00 01 ba 0d 3b |........|.I.....;|
|00000e80| 3b 20 43 6f 70 79 72 69 | 67 68 74 20 a9 20 31 39 |; Copyri|ght . 19|
|00000e90| 39 31 20 4e 6f 72 74 68 | 77 65 73 74 65 72 6e 20 |91 North|western |
|00000ea0| 55 6e 69 76 65 72 73 69 | 74 79 20 49 6e 73 74 69 |Universi|ty Insti|
|00000eb0| 74 75 74 65 20 66 6f 72 | 20 74 68 65 20 4c 65 61 |tute for| the Lea|
|00000ec0| 72 6e 69 6e 67 20 53 63 | 69 65 6e 63 65 73 0d 3b |rning Sc|iences.;|
|00000ed0| 3b 20 41 6c 6c 20 52 69 | 67 68 74 73 20 52 65 73 |; All Ri|ghts Res|
|00000ee0| 65 72 76 65 64 0d 3b 3b | 0d 3b 3b 20 61 75 74 68 |erved.;;|.;; auth|
|00000ef0| 6f 72 3a 20 4d 69 63 68 | 61 65 6c 20 53 2e 20 45 |or: Mich|ael S. E|
|00000f00| 00 00 00 0a 00 01 00 16 | 0a 00 01 00 00 00 00 00 |........|........|
|00000f10| 00 48 00 0a 43 6f 75 72 | 69 65 72 00 00 00 00 00 |.H..Cour|ier.....|
|00000f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f30| 00 00 00 00 00 06 00 08 | 00 3a 00 49 03 21 02 6a |........|.:.I.!.j|
|00000f40| 00 3a 00 49 03 21 02 6a | 00 00 00 00 00 00 06 87 |.:.I.!.j|........|
|00000f50| 00 00 06 87 00 00 04 81 | 01 00 00 00 00 0a 00 01 |........|........|
|00000f60| 07 43 6f 75 72 69 65 72 | 00 00 01 00 00 00 01 68 |.Courier|.......h|
|00000f70| 00 00 00 68 00 00 00 52 | 00 e8 04 68 0c 20 00 00 |...h...R|...h. ..|
|00000f80| 00 1c 00 52 00 01 46 52 | 45 44 00 01 00 12 4d 50 |...R..FR|ED....MP|
|00000f90| 53 52 00 00 00 2a 00 02 | ff ff 00 00 00 00 00 00 |SR...*..|........|
|00000fa0| 00 00 00 03 ff ff 00 00 | 00 5a 00 00 00 00 03 ed |........|.Z......|
|00000fb0| ff ff 00 00 00 0e 00 e8 | e8 dc 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+